package com.hl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.order.mapper.PlatformOrderMapper;
import com.hl.order.domain.PlatformOrder;
import com.hl.order.service.IPlatformOrderService;

/**
 * 订单列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class PlatformOrderServiceImpl implements IPlatformOrderService 
{
    @Autowired
    private PlatformOrderMapper platformOrderMapper;

    /**
     * 查询订单列表
     * 
     * @param orderId 订单列表主键
     * @return 订单列表
     */
    @Override
    public PlatformOrder selectPlatformOrderByOrderId(Long orderId)
    {
        return platformOrderMapper.selectPlatformOrderByOrderId(orderId);
    }

    /**
     * 查询订单列表列表
     * 
     * @param platformOrder 订单列表
     * @return 订单列表
     */
    @Override
    public List<PlatformOrder> selectPlatformOrderList(PlatformOrder platformOrder)
    {
        return platformOrderMapper.selectPlatformOrderList(platformOrder);
    }

    /**
     * 新增订单列表
     * 
     * @param platformOrder 订单列表
     * @return 结果
     */
    @Override
    public int insertPlatformOrder(PlatformOrder platformOrder)
    {
        return platformOrderMapper.insertPlatformOrder(platformOrder);
    }

    /**
     * 修改订单列表
     * 
     * @param platformOrder 订单列表
     * @return 结果
     */
    @Override
    public int updatePlatformOrder(PlatformOrder platformOrder)
    {
        return platformOrderMapper.updatePlatformOrder(platformOrder);
    }

    /**
     * 批量删除订单列表
     * 
     * @param orderIds 需要删除的订单列表主键
     * @return 结果
     */
    @Override
    public int deletePlatformOrderByOrderIds(Long[] orderIds)
    {
        return platformOrderMapper.deletePlatformOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单列表信息
     * 
     * @param orderId 订单列表主键
     * @return 结果
     */
    @Override
    public int deletePlatformOrderByOrderId(Long orderId)
    {
        return platformOrderMapper.deletePlatformOrderByOrderId(orderId);
    }
}
